<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>My JSP 'adduser.jsp' starting page</title>
		<meta content='注册' name='description'>
		<meta content='True' name='HandheldFriendly'>
		<meta content='width=device-width, initial-scale=1.0' name='viewport'>
		<jsp:include page="/public/header-meta.jsp"></jsp:include>
 		
 		 </head>		
<body id="startbbs">
<jsp:include page="/public/header.jsp"></jsp:include>
<div id="wrap"><div class="container" id="page-main"><div class="row">
<div class='col-xs-12 col-sm-6 col-md-8'> 
<div class='box'>
<div class='cell'>
<a href="" class="startbbs"></a> <span class="chevron">&nbsp;›&nbsp;</span> 注册${msg}
</div>
<div class='inner'>

<form accept-charset="UTF-8" action="user!reg" class="form-horizontal" id="new_user" method="post" >
<s:token/>
<div class="form-group">
<label class="col-sm-3 control-label" for="username">用户名</label>
<div class="col-sm-5">
<input class="form-control" id="username" name="uname" size="50" type="text" placeholder="输入您的用户名" />
<span class="help-inline error"></span>
</div></div>

<div class="form-group">
<label class="col-sm-3 control-label" for="user_email" >电子邮件</label>
<div class="col-sm-5">
<input class="form-control" id="email" name="uemail" type="text" size="50"  value="" />
<span class="error red"></span>
</div></div>

<div class="form-group">
<label class="col-sm-3 control-label" for="user_password">密码</label>
<div class="col-sm-5">
<input class="form-control" id="password" name="upassword" size="50" type="password" value="" />
<span class="error red"></span>
</div></div>
<div class="form-group">
<label class="col-sm-3 control-label" for="user_password_confirmation">密码确认</label>
<div class="col-sm-5">
<input class="form-control" id="repassword" name="repsw" size="50" type="password" />
<span class="error red"></span>
</div></div>
<div class="form-group">
<label class="col-sm-3 control-label" for="usersex">性别</label>
<div class="col-sm-5">
<input type="radio" name="usex" value="男" checked="checked">	男
<input type="radio" name="usex" value="女">女
<span class="help-inline red"></span>
</div></div>
<div class="form-group">
<label class="col-sm-3 control-label" for="captcha_code">验证码</label>
<div class="col-sm-3">
<input class="form-control" id="codeImg" name="securityCode" size="50" type="text"  />
</div>
<div class="col-sm-3">
 <a href="javascript:reloadcode();" title="更换一张验证码图片">
<img src="SecurityCodeImageAction" name="securityCode" id="checkCodeImg" border="0" /></a> <a href="javascript:reloadcode();">换一张</a>
</div>
</div>
<div class='form-group'>
	<div class="col-sm-offset-3 col-sm-9">
		<button type="submit" class="btn btn-primary" id="regBtn">注册</button>
	</div>
</div>
</form>
</div>
</div>

</div>
<div class='col-xs-12 col-sm-6 col-md-4' id='Rightbar'>

</div>
</div></div></div>
 <jsp:include page="/public/footer.jsp"></jsp:include>
 <script type="text/javascript" src="${pageContext.request.contextPath}/common/js/jreg.js"></script>
</body>
</html>
